#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time      :2021/3/26 14:23
# @Author    :cjw
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor


def func(name):
	for i in range(1000):
		print(name, i)


if __name__ == '__main__':
	# # 创建线程池
	# with ThreadPoolExecutor(50) as t:
	# 	for i in range(100):
	# 		t.submit(func, name=f'线程{i}')
	# # 等待线程池中的任务全部执行完毕，才继续执行(守护)
	# print('123')
	from time import sleep
	from random import triangular, uniform

	print(round(uniform(0.5, 3), 2))
